package com.xpw.viewdemo.view

import android.content.res.Resources
import android.util.TypedValue

//扩展类 扩展属性ktlion特性
    val Float.px
    get() = TypedValue.applyDimension(
        TypedValue.COMPLEX_UNIT_DIP,
        this,
        Resources.getSystem().displayMetrics
    )
